Skip to content

Allow calculating the layout behind a pointer#69079

Merged
bors merged 1 commit intorust-lang:masterfrom
CAD97:layout-of-ptr
Mar 22, 2020
Merged

Allow calculating the layout behind a pointer#69079
bors merged 1 commit intorust-lang:masterfrom
CAD97:layout-of-ptr

Conversation

@CAD97
Copy link
Contributor

@CAD97 CAD97 commented Feb 11, 2020

There was some discussion around allowing this previously.

This does make the requirement for raw pointers to have valid metadata exposed as part of the std API (as a safety invariant, not validity invariant), though I think this is not strictly necessarily required as of current. cc @rust-lang/wg-unsafe-code-guidelines

Naming is hard; I picked the best "obvious" name I could come up with.

If it's agreed that this is actually a desired API surface, I'll file a tracking issue and update the attributes.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.